package com.JFrameView;

import com.JFrameView.*;
import com.JFrameView.Window;


import java.awt.*;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author 17930
 */ // Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class StartUpSystem {
   public static void main(String[] args) throws InterruptedException, FontFormatException {
      Window window = new Window();
      window.init();
      Thread thread = new Thread(window);
      ScheduledExecutorService executor = new ScheduledThreadPoolExecutor(1);
      executor.scheduleWithFixedDelay(thread,0,5,TimeUnit.SECONDS);
   }
}